package com.bootdo.alipay.service.impl;

import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;
import com.bootdo.alipay.service.AlipayService;
import org.springframework.stereotype.Service;


@Service
public class AlipayServiceImpl implements AlipayService {

	@Override
	public AlipayClient getClient() {
		String ALIPAY_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApAYl080KCFSrUtqEZ32HeJXoFBwptLec042PdZ1KFBFB709exvhrbYl2EQfP7mChgIO+6herAfB/om/CfU2dd3+mWmAd3odqXdKu9ujM4nSJXGpZvLsKzcrFdd4AyIDypSrC0vOT56TiY2WsYKkonqcxVgFM3Vyh/XZpt0QGYXd6oXYs1XyXgaJTSUEMv071PNKMvkDUkZMTh+LMPHs2gUO6aUqju5JlZH79ZD41p9UpjSyo6HcrCS7KZ25MoOdJSrxpj/uMZhYroBYD/9hTKaumBkO8w3snfCkokdOgqPKb4mhK/HDxpDwSw+KJmDhn0Onh+P0syCAH5RZ6tze8UQIDAQAB";
		String APP_PRIVATE_KEY="MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCU1QJuQsucRWahRGez+oWMImGz6GPh/ZxFsorb7/Oo0BoKL/FlvQqw2h5Ca5Zc3wdQ5mj4cc4O8mN6Hfk6417FheJqaH56L4aQlmpcCfQBrguUNM5y+CsPAaWOvA6ZhRKzKCnNON+0QkLsdBMjmMeSwtZKSwE71sLv+4C4oxQdGtpLfPr4VuakemXdAk9Ey3g1ROYZv93dqrbONNx7idQIDg8sI1CvsShE3Q6xInMI0TTDZ7zMndVbILq9ib8TMHOK3L4R77PPTKtqskifRBu0svsTbR7eyIcmEDIb2JHDLbPLVJzBdEh4YCvEyN51/xdihp8mm2rNBa2iUhiw4283AgMBAAECggEAfM9Q1YRgWXF9ynmh+bV6LvVaN9QHhyn11iEO/7fu/r9dRvPDnUz13S9dNtggZUuHSBmhJ8/QPIqaT3s5WV/5Ru2q3Q86GV8nmrL5CKw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lasS9Fri35ALYwe+KrVjanFtUnJjYr9LhY0fIk=";
		AlipayClient alipayClient = new DefaultAlipayClient("https://openapi.alipay.com/gateway.do", "2016092001930351", APP_PRIVATE_KEY, "json", "UTF-8", ALIPAY_PUBLIC_KEY, "RSA2");
		return alipayClient;
	}

}
